<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.ajax4jsf.org/rich">

<f:view>
    <ui:composition template="../../template/template.xhtml">

	    <ui:define name="conteudo">
	            
	            
	    <a4j:form id="formMarcarConsulta" ajaxSingle="true" style="width: 50.1%; margin-left: 320px; border: 1px solid #B0C4DE; margin-top: -16px; margin-bottom: -16px;">
	     
	     <br />
		     
		     <rich:messages style="margin-left:10px; COLOR: #ff0000; FONT-WEIGHT: bold;"></rich:messages>
	       
	      
	       
	        <center>
	        
	        <b>Marcar Consulta</b>
	
			<br />
			<br />
	
			
				<h:outputLabel value="Especialidade: " style="FONT-WEIGHT: bold; margin-left: -238px;"/>
				
				<h:outputText value="#{marcarConsultaBean.consultaDTO.noEspecialidade}" style="margin-left: 10px;"/>
				
				<br />
				
				<h:outputLabel value="Terapeuta: " style="FONT-WEIGHT: bold; margin-left: -238px;"/>
				
				<h:outputText value="#{marcarConsultaBean.consultaDTO.noTerapeuta}" style="margin-left: 10px;"/>
				
				<br />
				
				<h:outputLabel value="Nome Paciente: " style="FONT-WEIGHT: bold; margin-left: 43px; margin-right: 11px;"/>
				<h:inputText value="#{marcarConsultaBean.consultaDTO.noPaciente}" disabled="true" size="60"/>
				<a4j:commandLink action="#{marcarConsultaBean.recuperarPaciente}">
	                  <h:graphicImage value="/imagens/lupa_mini.png" title="Clique para Pesquisar"/>
                </a4j:commandLink>				
				
			
			<br />
			
			
				<h:outputLabel value="Data: " style="FONT-WEIGHT: bold; margin-left: -81px; margin-right: 0px;"/>
				
				<h:outputText value="#{marcarConsultaBean.consultaDTO.data}" style="margin-left: 10px;"/>

				<h:outputLabel id="horaConsulta" value="Hora" style="margin-left: 17px; margin-right: 10px;"/>
				
				<h:outputText value="#{marcarConsultaBean.consultaDTO.inicio}" />
			
				<br />
			
				<h:outputLabel value="Tipo de Atendimento: " style="FONT-WEIGHT: bold; margin-left: -3px; margin-right: 10px;"/>
				
				<h:selectOneMenu value="#{marcarConsultaBean.consultaDTO.nuTipoAtendimento}">
					<f:selectItem itemLabel="Selecione" itemValue=""/>
					<f:selectItem itemLabel="PARTICULAR" itemValue="1"/>
					<f:selectItem itemLabel="PLANO DE SAÚDE" itemValue="2"/>
					<f:selectItem itemLabel="COMUNITÁRIO" itemValue="3"/>
					<f:selectItem itemLabel="RETORNO" itemValue="4"/>
				</h:selectOneMenu>
				
				
				<h:outputLabel value="Plano de Saúde: " style="FONT-WEIGHT: bold; margin-left: 10px; margin-right: 10px;"/>
				
				<h:selectOneMenu value="#{marcarConsultaBean.consultaDTO.nuPlanoSaude}">
					<f:selectItem itemLabel="Selecione" itemValue=""/>
					<f:selectItems value="#{marcarConsultaBean.planosDeSaude}"/>
				</h:selectOneMenu>
				
			
			 <br />
			 <br />
			 
			 <a4j:commandButton value="Salvar" action="#{marcarConsultaBean.salvarConsulta}" style="margin-right: 20px;"/>
			 <a4j:commandButton value="Horário Anterior" action="#{marcarConsultaBean.recuperarHorarioAnterior}" style="margin-right: 20px;" reRender="formMarcarConsulta"/>
			 <a4j:commandButton value="Próximo Horário" action="#{marcarConsultaBean.recuperarHorarioPosterior}" style="margin-right: 20px;" reRender="formMarcarConsulta"/>
			 <a4j:commandButton value="Voltar" action="#{marcarConsultaBean.voltarResultado}" style="margin-right: 20px;" reRender="formMarcarConsulta"/>
			
			
			 <br />
			 <br />
	
	        </center>
		    
		    <br />
		    
	    	</a4j:form>
	    	
		</ui:define>
    </ui:composition>
</f:view>
</html>